package com.bsb.base.mapper;

import com.bsb.base.model.BsbCard;
import com.bsb.base.model.BsbCardExample;
import com.bsb.base.model.BsbUserExample;

import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface BsbCardMapper {
    int countByExample(BsbCardExample example);

    int deleteByExample(BsbCardExample example);

    int deleteByPrimaryKey(Long id);

    int insert(BsbCard record);

    int insertSelective(BsbCard record);

    List<BsbCard> selectByExample(BsbCardExample example);

    BsbCard selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") BsbCard record, @Param("example") BsbCardExample example);

    int updateByExample(@Param("record") BsbCard record, @Param("example") BsbCardExample example);

    int updateByPrimaryKeySelective(BsbCard record);

    int updateByPrimaryKey(BsbCard record);

    List<BsbCard> selectPage(BsbCardExample example);

	int countByLike(@Param("cardrecord")BsbCardExample bsbCardExample, @Param("userrecord")BsbUserExample bsbUserExample);

	List<BsbCard> getPageCardLike(@Param("cardrecord")BsbCardExample bsbCardExample, @Param("userrecord")BsbUserExample userExample);
}